package com.szchenya.epermit.exception;


import com.szchenya.epermit.enums.ResultCode;
import lombok.Getter;

@Getter
public class BizException extends RuntimeException {

    public ResultCode resultCode;

    public BizException() {
        super(ResultCode.FAIL.getMessage());
    }

    public BizException(String message) {
        super(message);
    }

    public BizException(ResultCode errorCode) {
        super(errorCode.getMessage());
        this.resultCode = errorCode;
    }

    public BizException(String message, Throwable cause) {
        super(message, cause);
    }

    public BizException(Throwable cause) {
        super(cause);
    }
}
